// 这里写的都是getters
// 通过根getter建立对子模块state的快捷访问
const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  userId: (state) => state.user.userInfo.userId,
  username: (state) => state.user.userInfo.username,
  staffPhoto: (state) => state.user.userInfo.staffPhoto
}
export default getters
// mapGetters(['sidebar'])
// 读取到了 app模块state
